/*******************************************************************************
 * Copyright (c) 2018-2020 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0
 * which is available at https://www.apache.org/licenses/LICENSE-2.0.
 *
 * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
 *******************************************************************************/

/* You can add global styles to this file, and also import other style files */
@import "~ngx-toastr/toastr.css";

body {
    overflow-x: hidden;
    overflow-y: auto;
    /*background-color: #303030;*/
    background-size: 5px 5px;
    background-image:
        linear-gradient(to right, rgba(238, 238, 238, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(238, 238, 238, 0.5) 1px, transparent 1px);
}

#pre-bootstrap-container {
    height: 100vh;
    width: 100vw;
    background-color: white;
}

.modal {
    color: #000 !important;
}

.modal p {
    line-height: 100% !important;
}

.btn-modal {
    cursor: pointer;
    border: 1px solid #cccccc;
    border-radius: .4em;
    font-size: x-small;
}

.btn-modal:hover {
    background: #E1F5FE !important;
}

.help-block {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #737373;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}

[type=checkbox], [type=radio] {
    box-sizing: border-box;
    padding-right: 20px;
}

.checkbox label, .radio label {
    min-height: 20px;
    padding-left: 0px;
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.btn-modal:focus, .btn-modal:hover {
    background-color: #E1F5FE !important;
    color: #424242 !important;
    -webkit-box-shadow: initial;
    -moz-box-shadow: initial;
    box-shadow: initial;
}

.card.accordionGroupPanel,
.card.accordionGroupPanel .card-header,
.panel.accordionGroupPanel,
.card-title {
    font-size: x-small;
    padding-bottom: 0;
    padding-top: 0;
    user-select: none;
    scroll-padding-top: 1px;
    margin-bottom: 0 !important;
    color: #212121;
}

.card-header {
    padding: 8px;
}

.panel-heading.card-header {
    cursor: pointer;
    padding: 0;
}

.card-header:first-child {
    border-radius: 0px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.flashit {
    animation: flash ease-out 400ms 1;
}

@keyframes flash {
    0% {
        background-color: rgba(255, 255, 255, 0.2);
    }
    20% {
        background-color: rgba(170, 238, 170, 0.9);
    }
    100% {
        background-color: rgba(0, 226, 147, 0.1);
    }
}

.flashminmax {
    animation: flashminmaxanimation ease-out 400ms 1;
}

@keyframes flashminmaxanimation {
    0% {
        background-color: rgba(255, 255, 255, 0.2);
    }
    20% {
        background-color: rgba(0, 246, 146, 0.9);
    }
    100% {
        background-color: rgba(0, 226, 147, 0.1);
    }
}

.card-block {
    padding: .1em !important;
}

.card {
    background-color: rgba(255, 255, 255, 0.95);
}

.panel.accordionGroupPanel .panel-body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.jtk-overlay {
    user-select: none;
    cursor: default;
}

.jtk-drag-select * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.jtk-drag {
    z-index: 600 !important;
}

.jtk-connector {
    z-index: 7;
}

.jtk-endpoint {
    z-index: 8;
}

.jtk-overlay {
    z-index: 9;
}

table tr {

}

td {
    padding: 0 ;
}

.td-key {
    text-align: left !important;
    padding-left: 10px !important;
}

.td-maxinstances {
    padding-top: 0px !important;
    padding-left: 3px !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.td-mininstances {
    padding-top: 0px !important;
    padding-left: 3px !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.td-value {
}

.td-value div {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: x-small;
    white-space: nowrap;
    position: relative;
    width: auto;
    max-width: 100%;
    -webkit-transition: max-width linear 1ms;
    transition: max-width linear 1ms;
}

.header-table {
    width: 125px;
    table-layout: fixed;
}

/*.header-table td {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    width: auto !important;
    font-size: x-small;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 140px;
}*/

.td-value:hover div:before {
    border: 1px solid #ddd;
    content: "";
    height: 100%;
    display: block;
    left: 0;
    top: 0;
    width: 100%;
    position: absolute;
    z-index: -1; /* stack below truncated text */
    -webkit-user-select: all; /* Chrome all / Safari all */
    -moz-user-select: all; /* Firefox all */
    -ms-user-select: all; /* IE 10+ */
    user-select: all;
}

/*.header-table td:hover{
    max-width: 100%;
    overflow: visible;
    background-color: rgb(237, 232, 228);
    white-space: normal;
}*/

.cell-with-comment {
    position: relative;
}

td {
    cursor: pointer;
}

.cell-comment {
    display: none;
    position: absolute;
    z-index: 100;
    border: 1px;
    border-radius: .4em;
    background-color: #efefef;
    border-style: solid;
    border-width: 1px;
    border-color: #424242;
    padding: 3px;
    color: #000000;
    width: auto;
    left: 2em;
    top: 2em;
}

.cell-with-comment:hover span.cell-comment {
    display: block;
}

.card-block {
    padding-bottom: 0 !important;
}

.collapse.show {
    display: inline-flex !important;
    min-height: 0 !important;
}

.body-table td {
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    font-size: x-small;
    color: black;
}

.body-table th {
    padding-left: 0 !important;
    color: #303030;
}

tr.row.col-sm-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.table {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
}

.card-block {
    padding-top: 0;
    padding-bottom: 0;
}

.table-active, .table-active > td, .table-active > th {
    background-color: rgba(0, 0, 0, .0);
}

.table-border--grey td, .table-border--grey th {
    border-top: 1px solid rgba(22, 22, 22, 0.1);
    border-radius: 3px;
}

.table-spacer {
    border: 0 !important;
    border-radius: 0 !important;
    height: 0px !important;
}

.col-sm-9 {
    padding-left: 1px;
    padding-right: 2px;
}

.col-sm-12 {
    padding-left: 1px;
    padding-right: 1px;
}

.col-sm-3 {
    padding-left: 3px;
    padding-right: 3px;
}

.sk-folding-cube {
    margin: auto;
    width: 100px;
    height: 100px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
}

.sk-folding-cube .sk-cube {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.sk-folding-cube .sk-cube:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FBCAEF;
    -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
    animation: sk-foldCubeAngle 2.4s infinite linear both;
    -webkit-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
}

.sk-folding-cube .sk-cube2 {
    -webkit-transform: scale(1.1) rotateZ(90deg);
    transform: scale(1.1) rotateZ(90deg);
}

.sk-folding-cube .sk-cube3 {
    -webkit-transform: scale(1.1) rotateZ(180deg);
    transform: scale(1.1) rotateZ(180deg);
}

.sk-folding-cube .sk-cube4 {
    -webkit-transform: scale(1.1) rotateZ(270deg);
    transform: scale(1.1) rotateZ(270deg);
}

.sk-folding-cube .sk-cube2:before {
    background-color: #F865B0;
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.sk-folding-cube .sk-cube3:before {
    background-color: #E637BF;
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.sk-folding-cube .sk-cube4:before {
    background-color: #7A306C;

    -webkit-animation-delay: 0.9s;
    animation-delay: 0.9s;
}

@-webkit-keyframes sk-foldCubeAngle {
    0%, 10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }
    25%, 75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }
    90%, 100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

@keyframes sk-foldCubeAngle {
    0%, 10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }
    25%, 75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }
    90%, 100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

.sidebar-root {
    margin-bottom: 10px;
    border: 1px solid #000000;
    border-radius: 0.25rem;
    color: black;
    z-index: 999;
    position: relative;
    box-shadow: 2px 2px 10px -2px rgba(0, 0, 0, 0.75);
    background-color: #dddcdc;
    width: 100%;
}

.loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.ng-invalid {
    border-color: #a94442;
    border-width: 5px;
    border-style: solid;
}

.modal-backdrop {
    z-index: 900 !important;
}
